import { defineStore } from "pinia";
import { ref } from "vue";

export const useAppStore = defineStore(
  "app",
  () => {
    const sidebar = ref({
      opened: true,
    });

    return {
      sidebar,
    };
  },
  {
    persist: {
      key: "appStore",
      storage: window.localStorage,
      paths: ["sidebar"],
    },
  }
);
